package cn.com.huzo.service.purchase.impl;

import cn.com.huzo.model.entities.purchase.ReportPoCostPerStyleEntity;
import cn.com.huzo.repository.purchase.ReportPoCostPerStyleRepository;
import cn.com.huzo.service.purchase.ReportPoCostPerStyleManager;
import huzofw.service.impl.GenericManagerImpl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 款采购成本统计表情况数据管理服务对象。
 *
 * @author 吴旭
 */
@Service("ReportPoCostPerStyleManager")
public class ReportPoCostPerStyleManagerImpl extends GenericManagerImpl<ReportPoCostPerStyleEntity, HashMap>
        implements ReportPoCostPerStyleManager {

    @Resource(name = "ReportPoCostPerStyleRepository")
    private ReportPoCostPerStyleRepository _dao;

    /**
     * {@inheritDoc}
     *
     * @throws java.lang.Exception
     */
    @Override
    @Transactional
    public List<ReportPoCostPerStyleEntity> fetchReportData(Map<String, Object> criterion) throws Exception {
        return _dao.fetchReportData(criterion);
    }
}
